﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using HR60_PanelSoft.View.Base;

namespace HR60_PanelSoft.View.TabForms
{
	public partial class NetForm : BaseForm
	{
		public NetForm()
		{
			InitializeComponent();
		}

		// 绑定数据
		public override void refreshFormData(System.Collections.Generic.IDictionary<string, object> dataMap)
		{
			HR60_PanelSoft.Model.Net net = (HR60_PanelSoft.Model.Net)dataMap["net"];
			txtName.Value = net.name;
			txtIndex.Value = net.index;
		}

		// 数据修改事件
		public override void onFormChanged(BaseFormControl sender, System.EventArgs e)
		{
			windowMain.doSaveNet((HR60_PanelSoft.Model.Net)this.bindDataMap["net"], this.getFields());
		}
	}
}
